package com.asteros.crypto.utils.services;

import com.asteros.crypto.utils.sign.SignUtils;


public final class TspService
{
	private static final TspService instance = new TspService();

	private TspServerConfig config = null;

	public static TspService getInstance() {
		return instance;
	}

	public void setConfig(TspServerConfig config) {
		this.config = config;
		System.out.println("TspService.setConfig.url=" + config.getURL());
	}

	public byte[] send(byte[] req) throws Exception
	{
		SignUtils utils = new SignUtils();
//		Client httpClient = new Client(this.config.getURL().toString());
		byte[] response = utils.timestamp(req, this.config.getURL().toString());

		return response;
	}
}

/* Location:           C:\Users\Kirill\Desktop\esign\esign\esign.jar
 * Qualified Name:     com.asteros.crypto.tsp.TspService
 * JD-Core Version:    0.6.0
 */